//
//  OO_ClassListCollectionViewCell.m
//  ShopProject
//
//  Created by macbookpro on 2018/9/27.
//  Copyright © 2018年 ShopProject. All rights reserved.
//

#import "OO_ClassListCollectionViewCell.h"

@implementation OO_ClassListCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(OO_GoodsModel *)model{
    _model = model;
    self.goodsNameLable.text = model.goodsName;
    self.moneyLable.text = [NSString stringWithFormat:@"¥%.2lf",model.price];
    self.saleNumberLable.text = [NSString stringWithFormat:@"已售%ld",model.soldCount];
    if (model.image.count > 0) {
        [self.goodsImageView sd_setImageWithURL:[NSURL URLWithString:model.image[0]] placeholderImage:[UIImage imageNamed:IMAGEPLACEHOLDER]];
    }
    
    
    
}
@end
